#ifndef ENEMYPLANE_H
#define ENEMYPLANE_H
#include<QPixmap>
#include"bullet.h"
class enemyplane
{
public:
    enemyplane();
    void updateposition();
    void bossupdateposition();
    void bossshot();
    //
    QPixmap m_enemy;
    QPixmap boss;
    bullet bossbullet[20];
    int bossrecorder;
    int bossmove;
    bool right;
    //
    int m_x;
    int m_y;

    int m_x_boss;
    int m_y_boss;

//边框
    QRect m_rect;
    QRect m_rect_boss;

    //是否空闲
    bool m_free;
    bool m_free_boss;
    //
    int m_speed;
    int m_speed_boss;
    //血量
    int hp;
    void hpupdate();
    int boss_hp;

};

#endif // ENEMYPLANE_H
